<template>
	<!--设置开播提醒成功组件-->
	<div class="live-remind-success-box">
		<div class="gszq-middle-box" v-if="$channel=='gszq'">
			<p class="img"></p>
			<div>我们将在直播开始前5分钟通知您前来观看，可前往<span @click="myOrder">我的</span>查看预约信息</div>
			<p class="btn" @click="clickBtn">我知道了</p>
		</div>
		<div class="middle-box" v-else>
			<p class="top-text">开播提醒设置成功</p>
			<p class="middle-text">我们将在直播开始<span>前15分钟</span></p>
			<p class="bottom-text">给您发送消息提醒</p>
			<div class="btn" @click="clickBtn">
				知道了
			</div>
		</div>
		
	</div>
</template>
<script>
	export default {

		data() {
			return {

			}
		},
		created() {
		
		},
		methods: {
			clickBtn() {
				this.$emit('formChildMsg', {
					type: 'closeLiveRemindSuceesBox',
				})
			},
			//国盛证券 我的
			myOrder(){
				if(this.$channel =='gszq' && window.terminal.isGszqApp ){
					let data = JSON.stringify({
						    "funcname":"22406",
						    "args":{
						        "url":"/live/index.html?#/mine",
						        "immerseType": "1"
						    }
						})
					if(window.terminal.android) { //android
						window.MyWebView.callNativeFunction(data)
					} else {//ios
						window.webkit.messageHandlers.callNativeFunction.postMessage(data)
					}

				}
			}
		}
	}
</script>

<style scoped="scoped">
	.live-remind-success-box {
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, 0.6);
		display: flex;
		justify-content: center;
		align-items: center;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1010;
	}
	
	.middle-box {
		width: 622px;
		height: 820px;
		background: darkcyan;
		background: url(../../assets/images/live-remind-success.png) no-repeat;
		background-size: 622px 820px;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}
	
	.top-text {
		font-size: 38px;
		font-weight: bold;
		color: #323232;
		line-height: 70px;
		margin-top: 330px;
	}
	
	.middle-text {
		font-size: 28px;
		font-weight: 400;
		color: #333333;
		line-height: 70px;
	}
	
	.middle-text span {
		color: #CC2D30;
	}
	
	.bottom-text {
		font-size: 28px;
		font-weight: 400;
		color: #333333;
		line-height: 70px;
	}
	
	.btn {
		width: 506px;
		height: 90px;
		background: #F35757;
		box-shadow: 0px 0px 16px 0px rgba(116, 116, 116, 0.5);
		border-radius: 45px;
		line-height: 90px;
		text-align: center;
		color: white;
		font-size: 34px;
		margin-top: 70px;
	}
	/* //国盛证券 */
	.gszq-middle-box{
		width: calc(100vw - 170px);
		background: #FFFFFF;
		display: flex;
		flex-direction: column;
		align-items: center;
		border-radius: 12px;
		
	}
	.gszq-middle-box .img{
      height: 202px;
	  width: 100%;
	  margin-bottom: 93px;
	  background: url('../../assets/images/gszq/order-success.png') no-repeat;
	  background-size: 100% 100%;
	}
	.gszq-middle-box div{
		width: 390px;
		margin-bottom: 74px;
		font-size: 30px;
		color: #394259;
		line-height: 38px;
		text-align: center;
	}
	.gszq-middle-box div span{
		color: #006EFF;
	}
	.gszq-middle-box .btn{
		width: 520px;
		height: 80px;
		line-height: 80px;
		margin-bottom: 53px;
		margin-top: 0;
		background: linear-gradient(90deg, #727FFF 0%, #4C7AFE 100%);
		border-radius: 41px;
		font-size: 28px;
		font-weight: 400;
		color: #FFFFFF;
	}
</style>